package com.neko.seed.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.neko.seed.api.entity.BasePo;
import com.neko.seed.api.enums.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Holly Liu
 * @since 2022-04-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(value="User对象", description="用户表")
public class User extends BasePo {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "账号名称")
    private String name;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "手机号码")
    private String mobile;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "类型， 0-超级管理员 1-普通用户")
    private UserType type;

    @ApiModelProperty(value = "状态，0-离职 1-普通员工 2-试用员工 3-外包人员")
    private UserStatus status;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "上次登录时间")
    private Date loginTime;

    @ApiModelProperty(value = "微信公众号OpenId")
    private String openId;

    @ApiModelProperty(value = "微信公众号UnionId")
    private String unionId;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "邮件")
    private String email;

    @ApiModelProperty(value = "直属上级")
    private String managerId;

    @ApiModelProperty(value = "公司ID")
    private String companyId;

    @ApiModelProperty(value = "部门ID")
    private String departmentId;


}
